<?php

namespace app\common\model;

use think\Model;

class UserCategory extends Model
{
    public function children()
    {
        return $this->hasMany('UserCategory','pid','id')->field('pid,id,cate_name');
    }
}
